package com.localjoycommunity.cpdj.project.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.localjoycommunity.cpdj.project.system.domain.SysLearnData;
import com.localjoycommunity.cpdj.project.system.domain.UserData;

import java.util.List;
import java.util.Optional;

/**
 * @Author: lida
 * @Date: 2020/11/14
 * @Description:
 */
public interface IUserDataService extends IService<UserData> {

    /**
     * 用户收藏学习资料
     */
    int dataDig(UserData userData);

    /**
     * 收藏学习资料列表
     * @param userId
     * @return
     */
    List<SysLearnData> selectUserData(Integer userId);

    Integer isDig(int userId, Long learnId);
}
